package greentycoon.ville;

public class Pollution {
	
	/*Attributs*/
	
	/*Les pollutions sont données en %*/
	private float pollutionAir;
	private float pollutionSol;
	
	
	/*Methodes*/
	
	public Pollution()
	{
		pollutionAir = 0;
		pollutionSol = 0;
	}

	public void add(Pollution pol){
		
		pollutionAir+=pol.getPollutionAir();
		pollutionSol+=pol.getPollutionSol();
	}
	
	public float getPollutionAir() {
		return pollutionAir;
	}


	public void setPollutionAir(float pollutionAir) {
		this.pollutionAir = pollutionAir;
	}


	public float getPollutionSol() {
		return pollutionSol;
	}


	public void setPollutionSol(float pollutionSol) {
		this.pollutionSol = pollutionSol;
	}
	
	public float pollutionTotal()
	{
		float pollution = pollutionAir + pollutionSol;
		pollution/=2;
		return(pollution);
	}


}
